Vim set mark, jump back to mark

Chat GPT 4o 응답

In Vim, you can mark the current cursor position using the m{a-z} command, and jump back to it quickly. Here’s how to use it:


Mark current position

ma

🚀

Jump to the mark

`a     " Jump to exact position (line + column)"
'a     " Jump to beginning of the line containing the mark"

🧠 Pro tips


🧭 Use-case example:

  1. You’re editing a function.
  2. Set a mark: ma
  3. Jump to another place in the file.
  4. Need to return? Press `a or 'a.